using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace Local
{
    public class HotUpdateProgressForm : MonoBehaviour
    {
        [SerializeField]
        private Slider m_Progress;
        [SerializeField]
        private Text m_Log;
        private void Start()
        {
            var rect = GetComponent<RectTransform>();
            rect.anchorMin = Vector3.zero;
            rect.anchorMax = Vector3.one;
            rect.offsetMin = Vector3.zero;
            rect.offsetMax = Vector3.zero;
            
        }
        public void SetProgress(float progress)
        {
            if(m_Progress!=null)
            {
                m_Progress.value = progress;
            }
        }
        public void SetLog(string log)
        {
            if(m_Log!=null)
            {
                m_Log.text = log;
            }
        }
    }
}

